xen/arm: move mfn_to_p2m_entry in arch/arm/p2m.c
authorJulien Grall <julien.grall@linaro.org>
Tue, 17 Dec 2013 16:27:50 +0000 (16:27 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 18 Dec 2013 14:21:06 +0000 (14:21 +0000)
commitef8f305c6b4dd9e81e4c87ce3a251d779ff2301d
treefbeaf70aed34b43ffdd3bc3163103d60dce70afd
parent2bfa5c7fdd8e24279f3f1d28f434cfe923565bea
xen/arm: move mfn_to_p2m_entry in arch/arm/p2m.c

The function mfn_to_p2m_entry will be extended in a following patch to handle
p2m_type_t. It will break compilation because p2m_type_t is not defined
(interdependence between includes).
It's easier to move the function in arch/arm/p2m.c and it's not harmful as the
function is only used in this file.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/p2m.c
xen/include/asm-arm/page.h